package ru.xpparty.scanner;

/**
 * Created by IntelliJ IDEA.
 * User: Grab
 * Date: 19.12.10
 * Time: 17:35
 * To change this template use File | Settings | File Templates.
 */
public class ScanResult {
    private String host;
    private StringBuffer report = new StringBuffer();

    public ScanResult(String host) {
        this.host = host;
    }

    @Override
    public String toString() {
        return report.toString();
    }

    public void append(int port, PortStatus status) {
        report.append(host + ":" + port + " " + status + "\n");
    }
}
